﻿using System;
using Glue;
using Glue.Converters;
using Xunit;

namespace GlueTests.BaseConverterTests
{
    public class When_mapping_between_objects_of_wrong_type
    {
        [Fact]
        public void Should_throw_GlueException_on_wrong_types()
        {
            var converter = new IntStringConverter();
            Assert.Throws(typeof(GlueException), () => converter.Map(DateTime.Now, ""));
        }
    }
}
